// +build darwin dragonfly freebsd linux netbsd openbsd

package proc

import (
	"syscall"
)

func (id PID) interrupt() error {
	return syscall.Kill(id.getPID(), syscall.SIGINT)
}

func (id PID) terminate() error {
	return syscall.Kill(id.getPID(), syscall.SIGTERM)
}

func (id PID) kill() error {
	return syscall.Kill(id.getPID(), syscall.SIGKILL)
}

func (id PID) getPID() int {
	return int(id) * -1
}
